package com.foreknow.Demo5;

import java.util.Scanner;

public class Demo {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int [] arr =new int[5];
        System.out.println("请输入5次成绩");
        for (int i = 0;i<5;i++){
            arr[i] = input.nextInt();
        }
        //遍历数组
        for (int i = 0;i<5;i++){
            System.out.println(arr[i]);
        }
    }
}
